<%@ page language="java" import="java.util.*,hibernate.VGlUserinfo" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="commontaglib"%>
<%
String path = request.getContextPath();
VGlUserinfo loginUser = (VGlUserinfo)session.getAttribute("login_user") ;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

<html>
<head>
	<link rel="stylesheet" href="<%=path%>/css/innerstyle.css"	type="text/css" />
	<link rel="stylesheet" type="text/css" media="screen"	href="<%=path%>/css/ui-lightness/jquery-ui-1.8.23.custom.css" />
	
	<script type="text/javascript" src="<%=path%>/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/jquery-ui-1.8.23.custom.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/i18n/jquery.ui.datepicker-zh-CN.js"></script>
	<script type="text/javascript" src="<%=path%>/js/jquery.form.js"></script>
	<script type="text/javascript" src="<%=path%>/js/json2.js"></script>
	<script type="text/javascript" src="<%=path%>/js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/messages_zh.js"></script>
		
	<style type="text/css">
	    #common_box{width:1000px;position:fixed;_position:absolute;right:0;top:40%;border:1px solid #789;background:#fff;z-index:88}
	    #cli_on{width:30px;height:500px;float:left;cursor:pointer;background:#ac8932;text-align:center;line-height:180px}
	</style>
	<style type="text/css">
	#tab{
		width:99%;
		border:#F4F4F4 solid 4px;
		padding:0 2px 0 2px;
		margin:0;
		float:left;
	}
	
	
	#tab h1{
		display:block;
		width:75%;
		height:55px;	
		float:left;
		text-align: center;
		margin:0px;
	}
	#tab h1 span{
		width:250px;
		font:bold 26px/55px Arial, Helvetica, sans-serif;
		color:#327C8E;
		background-color:#fff;
		display:block;
	}
	#tab h2{
		display:block;
		width:10%;
		height:55px;	
		float:left;
		padding-top:0;
	}
	#tab h2 span{
		width:250px;
		font:bold 26px/55px Arial, Helvetica, sans-serif;
		color:#000;
		background-color:#fff;
		display:block;
	}
	
	#tab h3{
		display:block;
		width:10%;
		height:55px;	
		float:left;
		padding-top:0;
	}
	#tab h3 span{
		width:300px;
		font:bold 26px/55px Arial, Helvetica, sans-serif;
		color:#000;
		background-color:#fff;
		display:block;
	}
	#tab h4{
		display:block;
		width:95%;	
		float:left;
		text-align: center;
		margin:0px;
	}
	
	.content1
	{
		margin:0px;	
		padding:0px;
		width:100%;	
		font-size:12px;	
	}
	.content1 td
	{    
	    height:16px;
		line-height:16px;
		text-align:left;
		border-top-style:none;
		border-left-style:none;
		border-right-style:none;
		border-bottom-style:none;
	}
	label{ display:block; }
	fieldset { padding:0; border:0; margin-top:0; }
	</style>
	<style media=print type="text/css">   
	.noprint{visibility:hidden}   
	</style>
	
    <script language="javascript" src="<%=request.getContextPath()%>/js/liaotianshi.js"></script>
	<script language="javascript">
	//实时刷新合同
	function getContract(){//更新
	  var xsbh = $("#xsbh").text();
	  var url = "<%=path%>/consult/getContract.action?xsbh="+xsbh;
	  $.post(url, function(data) {					
            var json =eval('(' + data + ')');
            
            //显示
            var hetxsname = $("#hetxsname").text();
            if(hetxsname!=json.contractbean.hetxsname)
            {
            $("#hetxsname").text(json.contractbean.hetxsname); 
            alert("合同形式发生变化！由"+hetxsname+"变为"+json.contractbean.hetxsname);         
            }           
            var chumdwmc = $("#chumdwmc").text();
            if(chumdwmc !=json.contractbean.chumdwmc )
            {
            $("#chumdwmc").text(json.contractbean.chumdwmc ); 
            $("#chumdwmc2").text(json.contractbean.chumdwmc ); 
            alert("出卖单位名称发生变化！由"+chumdwmc +"变为"+json.contractbean.chumdwmc );         
            }
            var yingyzhmjglz = $("#yingyzhmjglz").text();
            if(yingyzhmjglz !=json.contractbean.yingyzhmjglz )
            {
            $("#yingyzhmjglz").text(json.contractbean.yingyzhmjglz ); 
            alert("出省站或营业站发生变化！由"+yingyzhmjglz +"变为"+json.contractbean.yingyzhmjglz );         
            }
            var maisdwmc = $("#maisdwmc").text();
            if(maisdwmc !=json.contractbean.maisdwmc )
            {
            $("#maisdwmc").text(json.contractbean.maisdwmc ); 
            $("#maisdwmc2").text(json.contractbean.maisdwmc );
            alert("买受单位发生变化！由"+maisdwmc +"变为"+json.contractbean.maisdwmc );         
            }
            var daodshengname = $("#daodshengname").text();
            if(daodshengname !=json.contractbean.daodshengname )
            {
            $("#daodshengname").text(json.contractbean.daodshengname ); 
            alert("到达省发生变化！由"+daodshengname +"变为"+json.contractbean.daodshengname );         
            }
            var daodshiname = $("#daodshiname").text();
            if(daodshiname !=json.contractbean.daodshiname )
            {
            $("#daodshiname").text(json.contractbean.daodshiname ); 
            alert("到达市发生变化！由"+daodshiname +"变为"+json.contractbean.daodshiname );         
            }
            var fahdwmc = $("#fahdwmc").text();
            if(fahdwmc !=json.contractbean.fahdwmc )
            {
            $("#fahdwmc").text(json.contractbean.fahdwmc ); 
            alert("发货单位发生变化！由"+fahdwmc +"变为"+json.contractbean.fahdwmc );         
            }
            var hangyname = $("#hangyname").text();
            if(hangyname !=json.contractbean.hangyname )
            {
            $("#hangyname").text(json.contractbean.hangyname ); 
            alert("行业发生变化！由"+hangyname +"变为"+json.contractbean.hangyname );         
            }
            
            var shouhdwmc = $("#shouhdwmc").text();
            if(shouhdwmc !=json.extendbean.shouhdwmc )
            {
            $("#shouhdwmc").text(json.extendbean.shouhdwmc ); 
            alert("收货单位发生变化！由"+shouhdwmc +"变为"+json.extendbean.shouhdwmc );         
            }
            var pinzgg = $("#pinzgg").text();
            if(pinzgg !=json.extendbean.pinzgg )
            {
            $("#pinzgg").text(json.extendbean.pinzgg ); 
            alert("品种规格发生变化！由"+pinzgg +"变为"+json.extendbean.pinzgg );         
            }
            var zhilzb = $("#zhilzb").text();
            if(zhilzb !=json.extendbean.zhilzb )
            {
            $("#zhilzb").text(json.extendbean.zhilzb ); 
            alert("质量指标发生变化！由"+zhilzb +"变为"+json.extendbean.zhilzb );         
            }
            var jiag = $("#jiag").text();
            if(jiag !=json.extendbean.jiag )
            {
            $("#jiag").text(json.extendbean.jiag ); 
            alert("价格发生变化！由"+jiag +"变为"+json.extendbean.jiag );         
            }
            var shul = $("#shul").text();
            if(shul !=json.extendbean.shul )
            {
            $("#shul").text(json.extendbean.shul ); 
            alert("数量发生变化！由"+shul +"变为"+json.extendbean.shul );         
            }
            

            
            var chumdwdz = $("#chumdwdz").text();
            if(chumdwdz !=json.contractbean.chumdwdz )
            {
            $("#chumdwdz").text(json.contractbean.chumdwdz ); 
            alert("出卖单位地址发生变化！由"+chumdwdz +"变为"+json.contractbean.chumdwdz );         
            } 
            var chumdwfddbr = $("#chumdwfddbr").text();
            if(chumdwfddbr !=json.contractbean.chumdwfddbr )
            {
            $("#chumdwfddbr").text(json.contractbean.chumdwfddbr ); 
            alert("出卖单位法定代表人发生变化！由"+chumdwfddbr +"变为"+json.contractbean.chumdwfddbr );         
            }
            var chumdwwtdlr = $("#chumdwwtdlr").text();
            if(chumdwwtdlr !=json.contractbean.chumdwwtdlr )
            {
            $("#chumdwwtdlr").text(json.contractbean.chumdwwtdlr ); 
            alert("出卖单位委托代理人发生变化！由"+chumdwwtdlr +"变为"+json.contractbean.chumdwwtdlr );         
            }
            var chumdwdh = $("#chumdwdh").text();
            if(chumdwdh !=json.contractbean.chumdwdh )
            {
            $("#chumdwdh").text(json.contractbean.chumdwdh ); 
            alert("出卖单位电话发生变化！由"+chumdwdh +"变为"+json.contractbean.chumdwdh );         
            }
            var chumdwcz = $("#chumdwcz").text();
            if(chumdwcz !=json.contractbean.chumdwcz )
            {
            $("#chumdwcz").text(json.contractbean.chumdwcz ); 
            alert("出卖单位传真发生变化！由"+chumdwcz +"变为"+json.contractbean.chumdwcz );         
            }
            var chumdwyzbm = $("#chumdwyzbm").text();
            if(chumdwyzbm !=json.contractbean.chumdwyzbm )
            {
            $("#chumdwyzbm").text(json.contractbean.chumdwyzbm ); 
            alert("出卖单位邮政编码发生变化！由"+chumdwyzbm +"变为"+json.contractbean.chumdwyzbm );         
            }
            var chumdwkhyh = $("#chumdwkhyh").text();
            if(chumdwkhyh !=json.contractbean.chumdwkhyh )
            {
            $("#chumdwkhyh").text(json.contractbean.chumdwkhyh ); 
            alert("出卖单位开户银行发生变化！由"+chumdwkhyh +"变为"+json.contractbean.chumdwkhyh );         
            }
            var chumdwzh = $("#chumdwzh").text();
            if(chumdwzh !=json.contractbean.chumdwzh )
            {
            $("#chumdwzh").text(json.contractbean.chumdwzh ); 
            alert("出卖单位帐号发生变化！由"+chumdwzh +"变为"+json.contractbean.chumdwzh );         
            }
            var chumdwnsrdjh = $("#chumdwnsrdjh").text();
            if(chumdwnsrdjh !=json.contractbean.chumdwnsrdjh )
            {
            $("#chumdwnsrdjh").text(json.contractbean.chumdwnsrdjh ); 
            alert("出卖单位纳税人登记号发生变化！由"+chumdwnsrdjh +"变为"+json.contractbean.chumdwnsrdjh );         
            }
            var chumdwjsrmc = $("#chumdwjsrmc").text();
            if(chumdwjsrmc !=json.contractbean.chumdwjsrmc )
            {
            $("#chumdwjsrmc").text(json.contractbean.chumdwjsrmc ); 
            alert("出卖单位结算人名称发生变化！由"+chumdwjsrmc +"变为"+json.contractbean.chumdwjsrmc );         
            }
            var chumdwjsrdz = $("#chumdwjsrdz").text();
            if(chumdwjsrdz !=json.contractbean.chumdwjsrdz )
            {
            $("#chumdwjsrdz").text(json.contractbean.chumdwjsrdz ); 
            alert("出卖单位结算人地址发生变化！由"+chumdwjsrdz +"变为"+json.contractbean.chumdwjsrdz );         
            }
            var chumdwjsrfddbr = $("#chumdwjsrfddbr").text();
            if(chumdwjsrfddbr !=json.contractbean.chumdwjsrfddbr )
            {
            $("#chumdwjsrfddbr").text(json.contractbean.chumdwjsrfddbr ); 
            alert("出卖单位结算人法定代表人发生变化！由"+chumdwjsrfddbr +"变为"+json.contractbean.chumdwjsrfddbr );         
            }
            var chumdwjsrwtdlr = $("#chumdwjsrwtdlr").text();
            if(chumdwjsrwtdlr !=json.contractbean.chumdwjsrwtdlr )
            {
            $("#chumdwjsrwtdlr").text(json.contractbean.chumdwjsrwtdlr ); 
            alert("出卖单位结算人委托代理人发生变化！由"+chumdwjsrwtdlr +"变为"+json.contractbean.chumdwjsrwtdlr );         
            }
            var chumdwjsrdh = $("#chumdwjsrdh").text();
            if(chumdwjsrdh !=json.contractbean.chumdwjsrdh )
            {
            $("#chumdwjsrdh").text(json.contractbean.chumdwjsrdh ); 
            alert("出卖单位结算人电话发生变化！由"+chumdwjsrdh +"变为"+json.contractbean.chumdwjsrdh );         
            }  
            var chumdwjsrcz = $("#chumdwjsrcz").text();
            if(chumdwjsrcz !=json.contractbean.chumdwjsrcz )
            {
            $("#chumdwjsrcz").text(json.contractbean.chumdwjsrcz ); 
            alert("出卖单位结算人传真发生变化！由"+chumdwjsrcz +"变为"+json.contractbean.chumdwjsrcz );         
            }
            var chumdwjsryzbm = $("#chumdwjsryzbm").text();
            if(chumdwjsryzbm !=json.contractbean.chumdwjsryzbm )
            {
            $("#chumdwjsryzbm").text(json.contractbean.chumdwjsryzbm ); 
            alert("出卖单位结算人邮政编码发生变化！由"+chumdwjsryzbm +"变为"+json.contractbean.chumdwjsryzbm );         
            }
            var chumdwjsrkhyh = $("#chumdwjsrkhyh").text();
            if(chumdwjsrkhyh !=json.contractbean.chumdwjsrkhyh )
            {
            $("#chumdwjsrkhyh").text(json.contractbean.chumdwjsrkhyh ); 
            alert("出卖单位结算人开户银行发生变化！由"+chumdwjsrkhyh +"变为"+json.contractbean.chumdwjsrkhyh );         
            } 
            var chumdwjsrzh = $("#chumdwjsrzh").text();
            if(chumdwjsrzh !=json.contractbean.chumdwjsrzh )
            {
            $("#chumdwjsrzh").text(json.contractbean.chumdwjsrzh ); 
            alert("出卖单位结算人帐号发生变化！由"+chumdwjsrzh +"变为"+json.contractbean.chumdwjsrzh );         
            }
            var chumdwjsrnsrdjh = $("#chumdwjsrnsrdjh").text();
            if(chumdwjsrnsrdjh !=json.contractbean.chumdwjsrnsrdjh )
            {
            $("#chumdwjsrnsrdjh").text(json.contractbean.chumdwjsrnsrdjh ); 
            alert("出卖单位结算人纳税人登记号发生变化！由"+chumdwjsrnsrdjh +"变为"+json.contractbean.chumdwjsrnsrdjh );         
            }
            
            var maisdwdz = $("#maisdwdz").text();
            if(maisdwdz !=json.contractbean.maisdwdz )
            {
            $("#maisdwdz").text(json.contractbean.maisdwdz ); 
            alert("买受单位地址发生变化！由"+maisdwwtdlr +"变为"+json.contractbean.maisdwdz );         
            }
            var maisdwfddbr = $("#maisdwfddbr").text();
            if(maisdwfddbr !=json.contractbean.maisdwfddbr )
            {
            $("#maisdwfddbr").text(json.contractbean.maisdwfddbr ); 
            alert("买受单位法定代表人发生变化！由"+maisdwfddbr +"变为"+json.contractbean.maisdwfddbr );         
            }
            var maisdwwtdlr = $("#maisdwwtdlr").text();
            if(maisdwwtdlr !=json.contractbean.maisdwwtdlr )
            {
            $("#maisdwwtdlr").text(json.contractbean.maisdwwtdlr ); 
            alert("买受单位委托代理人发生变化！由"+maisdwwtdlr +"变为"+json.contractbean.maisdwwtdlr );         
            }
            var maisdwdh = $("#maisdwdh").text();
            if(maisdwdh !=json.contractbean.maisdwdh )
            {
            $("#maisdwdh").text(json.contractbean.maisdwdh ); 
            alert("买受单位电话发生变化！由"+maisdwdh +"变为"+json.contractbean.maisdwdh );         
            }
            var maisdwcz = $("#maisdwcz").text();
            if(maisdwcz !=json.contractbean.maisdwcz )
            {
            $("#maisdwcz").text(json.contractbean.maisdwcz ); 
            alert("买受单位传真发生变化！由"+maisdwcz +"变为"+json.contractbean.maisdwcz );         
            }
            var maisdwyzbm = $("#maisdwyzbm").text();
            if(maisdwyzbm !=json.contractbean.maisdwyzbm )
            {
            $("#maisdwyzbm").text(json.contractbean.maisdwyzbm ); 
            alert("买受单位邮政编码发生变化！由"+maisdwyzbm +"变为"+json.contractbean.maisdwyzbm );         
            }
            var maisdwkhyh = $("#maisdwkhyh").text();
            if(maisdwkhyh !=json.contractbean.maisdwkhyh )
            {
            $("#maisdwkhyh").text(json.contractbean.maisdwkhyh ); 
            alert("买受单位开户银行发生变化！由"+maisdwkhyh +"变为"+json.contractbean.maisdwkhyh );         
            }
            var maisdwzh = $("#maisdwzh").text();
            if(maisdwzh !=json.contractbean.maisdwzh )
            {
            $("#maisdwzh").text(json.contractbean.maisdwzh ); 
            alert("买受单位帐号发生变化！由"+maisdwzh +"变为"+json.contractbean.maisdwzh );         
            }
            var maisdwnsrdjh = $("#maisdwnsrdjh").text();
            if(maisdwnsrdjh !=json.contractbean.maisdwnsrdjh )
            {
            $("#maisdwnsrdjh").text(json.contractbean.maisdwnsrdjh ); 
            alert("买受单位纳税人登记号发生变化！由"+maisdwnsrdjh +"变为"+json.contractbean.maisdwnsrdjh );         
            }
            var maisdwjsrmc = $("#maisdwjsrmc").text();
            if(maisdwjsrmc !=json.contractbean.maisdwjsrmc )
            {
            $("#maisdwjsrmc").text(json.contractbean.maisdwjsrmc ); 
            alert("买受单位结算人名称发生变化！由"+maisdwjsrmc +"变为"+json.contractbean.maisdwjsrmc );         
            }
            var maisdwjsrdz = $("#maisdwjsrdz").text();
            if(maisdwjsrdz !=json.contractbean.maisdwjsrdz )
            {
            $("#maisdwjsrdz").text(json.contractbean.maisdwjsrdz ); 
            alert("买受单位结算人地址发生变化！由"+maisdwjsrdz +"变为"+json.contractbean.maisdwjsrdz );         
            }
            var maisdwjsrfddbr = $("#maisdwjsrfddbr").text();
            if(maisdwjsrfddbr !=json.contractbean.maisdwjsrfddbr )
            {
            $("#maisdwjsrfddbr").text(json.contractbean.maisdwjsrfddbr ); 
            alert("买受单位结算人法定代表人发生变化！由"+maisdwjsrfddbr +"变为"+json.contractbean.maisdwjsrfddbr );         
            }
            var maisdwjsrwtdlr = $("#maisdwjsrwtdlr").text();
            if(maisdwjsrwtdlr !=json.contractbean.maisdwjsrwtdlr )
            {
            $("#maisdwjsrwtdlr").text(json.contractbean.maisdwjsrwtdlr ); 
            alert("买受单位结算人委托代理人发生变化！由"+maisdwjsrwtdlr +"变为"+json.contractbean.maisdwjsrwtdlr );         
            }
            var maisdwjsrdh = $("#maisdwjsrdh").text();
            if(maisdwjsrdh !=json.contractbean.maisdwjsrdh )
            {
            $("#maisdwjsrdh").text(json.contractbean.maisdwjsrdh ); 
            alert("买受单位结算人电话发生变化！由"+maisdwjsrdh +"变为"+json.contractbean.maisdwjsrdh );         
            }
            var maisdwjsrcz = $("#maisdwjsrcz").text();
            if(maisdwjsrcz !=json.contractbean.maisdwjsrcz )
            {
            $("#maisdwjsrcz").text(json.contractbean.maisdwjsrcz ); 
            alert("买受单位结算人传真发生变化！由"+maisdwjsrcz +"变为"+json.contractbean.maisdwjsrcz );         
            }
            var maisdwjsryzbm = $("#maisdwjsryzbm").text();
            if(maisdwjsryzbm !=json.contractbean.maisdwjsryzbm )
            {
            $("#maisdwjsryzbm").text(json.contractbean.maisdwjsryzbm ); 
            alert("买受单位结算人邮政编码发生变化！由"+maisdwjsryzbm +"变为"+json.contractbean.maisdwjsryzbm );         
            }
            var maisdwjsrkhyh = $("#maisdwjsrkhyh").text();
            if(maisdwjsrkhyh !=json.contractbean.maisdwjsrkhyh )
            {
            $("#maisdwjsrkhyh").text(json.contractbean.maisdwjsrkhyh ); 
            alert("买受单位结算人开户银行发生变化！由"+maisdwjsrkhyh +"变为"+json.contractbean.maisdwjsrkhyh );         
            }
            var maisdwjsrzh = $("#maisdwjsrzh").text();
            if(maisdwjsrzh !=json.contractbean.maisdwjsrzh )
            {
            $("#maisdwjsrzh").text(json.contractbean.maisdwjsrzh ); 
            alert("买受单位结算人帐号发生变化！由"+maisdwjsrzh +"变为"+json.contractbean.maisdwjsrzh );         
            }
            var maisdwjsrnsrdjh = $("#maisdwjsrnsrdjh").text();
            if(maisdwjsrnsrdjh !=json.contractbean.maisdwjsrnsrdjh )
            {
            $("#maisdwjsrnsrdjh").text(json.contractbean.maisdwjsrnsrdjh ); 
            alert("买受单位结算人纳税人登记号发生变化！由"+maisdwjsrnsrdjh +"变为"+json.contractbean.maisdwjsrnsrdjh );         
            }
            
            //条款  显示并赋值
			$( "#clause").children().remove(); 
			//var dtable = $("#clause");
			var dtable = document.getElementById("clause");
			var clausJson = json.clausebean; 
			//alert(clausJson);
			for(var i=0;i<clausJson.length;i++)
			{
			   var elTr = dtable.insertRow( -1 );
		       var tkTd = elTr.insertCell( -1 );
		       var tx =clausJson[i].tkh;
		       tkTd.innerHTML = tx;
		       var idTd = elTr.insertCell( -1 );
		       var sx =clausJson[i].biaot+"<input type=\"hidden\" name=\"djtk["+i+"].biaot\" value=\""+clausJson[i].biaot+"\"/>";
		       idTd.innerHTML = sx;
		       var jfTd = elTr.insertCell(-1);
		       var jfyq=clausJson[i].neir+"<input type=\"hidden\" name=\"djtk["+i+"].neir\" value=\""+clausJson[i].neir+"\"/>";    
		       jfTd.innerHTML=jfyq; 
			}	
			
			//为隐藏属性赋值
			$("#chumdwmc_inp").val(json.contractbean.chumdwmc);
			$("#chumdwbm_inp").val(json.contractbean.chumdwbm);
			$("#yingyzhmjglz_inp").val(json.contractbean.yingyzhmjglz);
			$("#yingyzhmjglzbm_inp").val(json.contractbean.yingyzhmjglzbm);
			$("#maisdwmc_inp").val(json.contractbean.maisdwmc);
			$("#maisdwbm_inp").val(json.contractbean.maisdwbm);
			$("#daodshiname_inp").val(json.contractbean.daodshiname);
			$("#daodssd_inp").val(json.contractbean.daodssd);
			$("#hetxs_inp").val(json.contractbean.hetxs);
			$("#hetxsname_inp").val(json.contractbean.hetxsname);
			$("#jiaglxname_inp").val(json.contractbean.jiaglxname);
			$("#jiaglx_inp").val(json.contractbean.jiaglx);	
			$("#hangy_inp").val(json.contractbean.hangy);	
			$("#hangyname_inp").val(json.contractbean.hangyname);	
			$("#fahdwmc_inp").val(json.contractbean.fahdwmc);
			$("#fahdwbm_inp").val(json.contractbean.fahdwbm);
			
			$("#shouhdwmc_inp").val(json.extendbean.shouhdwmc);
			$("#shouhdwbm_inp").val(json.extendbean.shouhdwbm);
			$("#pinzgg_inp").val(json.extendbean.pinzgg);
			$("#meiz_inp").val(json.extendbean.meiz);
			$("#meizbm_inp").val(json.extendbean.meizbm);
			$("#pinz_inp").val(json.extendbean.pinz);
			$("#pinzbm_inp").val(json.extendbean.pinzbm);
			$("#zhilzb_inp").val(json.extendbean.zhilzb);
			$("#jiag_inp").val(json.extendbean.jiag);
			$("#shul_inp").val(json.extendbean.shul);
			$("#gml1_inp").val(json.extendbean.gml1);
			$("#gml2_inp").val(json.extendbean.gml2);
			$("#gml3_inp").val(json.extendbean.gml3);
			$("#gml4_inp").val(json.extendbean.gml4);
			$("#gml5_inp").val(json.extendbean.gml5);
			$("#gml6_inp").val(json.extendbean.gml6);
			$("#gml7_inp").val(json.extendbean.gml7);
			$("#gml8_inp").val(json.extendbean.gml8);
			$("#gml9_inp").val(json.extendbean.gml9);
			$("#gml10_inp").val(json.extendbean.gml10);
			$("#gml11_inp").val(json.extendbean.gml11);
			$("#gml12_inp").val(json.extendbean.gml12);
			$("#djzb_inp").val(json.extendbean.djzb);
	
			$("#chumdwdz_inp").val(json.contractbean.chumdwdz);         
			$("#chumdwfddbr_inp").val(json.contractbean.chumdwfddbr);         
			$("#chumdwwtdlr_inp").val(json.contractbean.chumdwwtdlr);         
			$("#chumdwdh_inp").val(json.contractbean.chumdwdh);         
			$("#chumdwcz_inp").val(json.contractbean.chumdwcz);         
			$("#chumdwyzbm_inp").val(json.contractbean.chumdwyzbm);         
			$("#chumdwkhyh_inp").val(json.contractbean.chumdwkhyh);         
			$("#chumdwzh_inp").val(json.contractbean.chumdwzh);         
			$("#chumdwnsrdjh_inp").val(json.contractbean.chumdwnsrdjh);         
			
			
			$("#chumdwjsrbm_inp").val(json.contractbean.chumdwjsrbm);         
			$("#chumdwjsrmc_inp").val(json.contractbean.chumdwjsrmc);         
			$("#chumdwjsrdz_inp").val(json.contractbean.chumdwjsrdz);         
			$("#chumdwjsrfddbr_inp").val(json.contractbean.chumdwjsrfddbr);         
			$("#chumdwjsrwtdlr_inp").val(json.contractbean.chumdwjsrwtdlr);         
			$("#chumdwjsrdh_inp").val(json.contractbean.chumdwjsrdh);         
			$("#chumdwjsrcz_inp").val(json.contractbean.chumdwjsrcz);         
			$("#chumdwjsryzbm_inp").val(json.contractbean.chumdwjsryzbm);         
			$("#chumdwjsrkhyh_inp").val(json.contractbean.chumdwjsrkhyh);         
			$("#chumdwjsrzh_inp").val(json.contractbean.chumdwjsrzh);         
			$("#chumdwjsrnsrdjh_inp").val(json.contractbean.chumdwjsrnsrdjh);         
			
			$("#maisdwdz_inp").val(json.contractbean.maisdwdz);         
			$("#maisdwfddbr_inp").val(json.contractbean.maisdwfddbr);         
			$("#maisdwwtdlr_inp").val(json.contractbean.maisdwwtdlr);         
			$("#maisdwdh_inp").val(json.contractbean.maisdwdh);         
			$("#maisdwcz_inp").val(json.contractbean.maisdwcz);         
			$("#maisdwyzbm_inp").val(json.contractbean.maisdwyzbm);         
			$("#maisdwkhyh_inp").val(json.contractbean.maisdwkhyh);         
			$("#maisdwzh_inp").val(json.contractbean.maisdwzh);         
			$("#maisdwnsrdjh_inp").val(json.contractbean.maisdwnsrdjh);         
			
			$("#maisdwjsrbm_inp").val(json.contractbean.maisdwjsrbm);         
			$("#maisdwjsrmc_inp").val(json.contractbean.maisdwjsrmc);         
			$("#maisdwjsrdz_inp").val(json.contractbean.maisdwjsrdz);         
			$("#maisdwjsrfddbr_inp").val(json.contractbean.maisdwjsrfddbr);         
			$("#maisdwjsrwtdlr_inp").val(json.contractbean.maisdwjsrwtdlr);         
			$("#maisdwjsrdh_inp").val(json.contractbean.maisdwjsrdh);         
			$("#maisdwjsrcz_inp").val(json.contractbean.maisdwjsrcz);         
			$("#maisdwjsryzbm_inp").val(json.contractbean.maisdwjsryzbm);         
			$("#maisdwjsrkhyh_inp").val(json.contractbean.maisdwjsrkhyh);         
			$("#maisdwjsrzh_inp").val(json.contractbean.maisdwjsrzh);         
			$("#maisdwjsrnsrdjh_inp").val(json.contractbean.maisdwjsrnsrdjh);
				                 	  
                
      
     });
	}

	
	//聊天室发送消息
     function send()
     {
            var xsbh = $("#xsbh").text();          
	        var url = "<%=request.getContextPath()%>/liaotianshi/sendMessages.action?xsbh="+xsbh;
	         $("#onlineconsult").ajaxSubmit({
	              url:url,
	              type:'post',
	              success:function(data){
	              var json =eval('(' + data + ')');
	              $("#xsbh").text(json.xsbh);
	              $("#content").val("");
	              }
	         });
     }
     
     //判断对方是否发布
     function readXszt(){
		    var xsbh = $("#xsbh").text();  
			url="<%=request.getContextPath()%>/liaotianshi/readXszt.action?xsbh="+xsbh;		
			$.post(url,function(data){ 
	        var json =eval('(' + data + ')');  
	           if(json.xszt==0)
	           {
	              $("#xszt_1").hide();
		          $("#xszt_2").hide();
	              $("#xszt_0").show();
	           	           
	           } 
	           if(json.xszt==1)
	           {
	              $("#queren").attr('disabled',false);
	              $("#xszt_0").hide();
		          $("#xszt_2").hide();
	              $("#xszt_1").show();	           
	           } 
	           if(json.xszt==2)
	           {
	              $("#xszt_0").hide();
		          $("#xszt_1").hide();
	              $("#xszt_2").show();           	           
	           } 
	        });
		}
		
		//获取接受端是否改变
		function readXschanged(){
		    var xsbh = $("#xsbh").text();  
			url="<%=request.getContextPath()%>/liaotianshi/readXschanged.action?xsbh="+xsbh;		
			$.post(url,function(data){ 
	        var json =eval('(' + data + ')');  
	           if(json.xschanged==1)
	           {
	           alert("对方已修改合同，请注意变化");
	           getContract();//刷新合同文本
               //修改xszt
               var url = "<%=path%>/liaotianshi/updateXschanged.action?xschanged="+0+"&xsbh="+xsbh;//0无更新状态
	           $.post(url);
	           } 
	        });
		}
		
     
      $(function(){
       getContract();
       readXszt();
       setInterval(readXszt,3000); 
       readXschanged();
       setInterval(readXschanged,3000);
       $("#queren").button();
       $("#queren").attr('disabled',true);
       $("#guanbi").button(); 
       //确认合同，保存合同，并且存入流程
       $("#queren").click(function() 
       {
		      var url = "<%=path%>/htgl/saveContractToHt.action";
		       $("#form1").ajaxSubmit({
		            url:url,
		            type:'post',
		            success:function(data){
		            var json =eval('(' + data + ')');
				    if(json.result==1){			    
				    alert("保存成功！");					   
				   }else if(json.result==2){
				    $("#queren").attr('disabled',true);
				    alert("确认提报成功！");
				   }
				   else
				   {
				     alert("确认提报失败！");
				   }
				   }
				   });
       }
       ); 
       $("#xszt_0").hide();
	   $("#xszt_1").hide();
	   $("#xszt_2").hide();
       });	
     
	  window.onload=function(){
	    checkScrollScreen();//当页面载入后控制是否滚屏
		showContent();		
		//页面伸缩
		var combox = document.getElementById("common_box");
	    var cli_on = document.getElementById("cli_on");
	    var flag = true, timer = null, initime = null, r_len = 0;
	    cli_on.onclick = function () {
	    /*如果不需要动态效果，这两句足矣
	    combox.style.right = flag?'-270px':0;
	    flag = !flag;
	    */
	    clearTimeout(initime);
	    //根据状态flag执开展开收缩
	    if (flag) {
	    r_len = 0;
	    timer = setInterval(slideright, 10);
	    } else {
	    r_len = -970;
	    timer = setInterval(slideleft, 10);
	    }
	    }
	    //展开
	    function slideright() {
	    if (r_len <= -970) {
	    clearInterval(timer);
	    flag = !flag;
	    return false;
	    } else {
	    r_len -= 10;
	    combox.style.right = r_len + 'px';
	    }
	    }
	    //收缩
	    function slideleft() {
	    if (r_len >= 0) {
	    clearInterval(timer);
	    flag = !flag;
	    return false;
	    } else {
	    r_len += 10;
	    combox.style.right = r_len + 'px';
	    }
	    }
	    //加载后3秒页面自动收缩
	    initime = setTimeout("cli_on.click()", 1000);
	    }
         
		function showContent(){
		    var xsbh = $("#xsbh").text();  
			var loader1=new net.AjaxRequest("<%=request.getContextPath()%>/liaotianshi/getMessages.action?nocache="+new Date().getTime()+"&xsbh="+xsbh+"&toid="+${touser.userid},deal_content,onerror,"POST");
		}
		
		function deal_content(){
			var returnValue=this.req.responseText;		//获取Ajax处理页的返回值
			content_show.innerHTML=returnValue;
		}
		window.setInterval("showContent();",1000);  
		
		//控制是否滚屏
	    function checkScrollScreen(){
		if(!onlineconsult.scrollScreen.checked){
			document.getElementById("content_show").style.overflow='scroll';
			//document.getElementById('content_show').scrollTop = document.getElementById('content_show').scrollHeight*2;
			//setTimeout('checkScrollScreen()',500);
		}else{
			document.getElementById("content_show").style.overflow='hidden';
			document.getElementById('content_show').scrollTop = document.getElementById('content_show').scrollHeight*2;	//当聊天信息超过一屏时，设置最先发送的聊天信息不显示
		}
		setTimeout('checkScrollScreen()',500);
	    }
	</script>
</head>

 <body>
    <div id="common_box">
    <div id="cli_on">协商交易</div>
    <div>
			  <table width="965.5" height="276px" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
			    <td width="965.5"  height="276px" valign="top" bgcolor="#F7FDAD" style="padding:5px; ">
				<div style="height:290px; overflow:hidden" id="content_show">聊天内容</div>
				</td>
			  </tr>
			  </table>
			  <form  id="onlineconsult" method="post" >
			  <table width="965.5" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#D6D3CE" bgcolor="#D1E9AA">  
			  <tr>
			    <td height="37" align="left">&nbsp;</td>
			    <td height="37" align="left"><input name="from" type="hidden" value="<%=loginUser.getOrgname()%>(<%=loginUser.getRolename()%>:<%=loginUser.getUsername()%>)"/>[ 我 ]
			    对
			    <input name="to" type="hidden" value="${fromuser.orgname}(${fromuser.rolename}:${fromuser.username})"/>[ ${fromuser.orgname}(${fromuser.rolename}:${fromuser.username})] 
			    说：</td>
			    <td width="19" align="left">&nbsp;</td>	
			    </tr>	
			  <tr>
			    <td width="21" height="30" align="left">&nbsp;</td>
			    <td width="575" align="left">
			      <input style="display:none"/>
			      <input id="content" name="content" type="text"  size="70"  onKeyDown="if(event.keyCode==13 && event.ctrlKey){send();}"/>
			      <input id="submit_chat"  type="button"  value="发送" onClick="send();"/>(按ctrl+enter键直接发送)
			    </td>			 
			  </tr>
			  <tr>
		      <td width="21" height="30" align="left">&nbsp;</td>
			   <td width="575" align="left">是否滚屏显示
              <input name="scrollScreen" type="checkbox" class="noborder" id="scrollScreen" onClick="checkScrollScreen();" value="1" checked/></td>
              </tr>
			</table>
			</form>
    </div>
    </div>
	<div id="tab">
	    <form name="form1" id="form1">
		<h1>协 商 交 易</h1>
		<h2><span id="hetxsname" >${contractbean.hetxsname}</span></h2>
			<table id="list_search" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="120">出卖人（销方）:</td>
					<td  width="30%"><span id="chumdwmc" >${contractbean.chumdwmc}</span></td>
					<td width="120">协商编号:</td>
					<td width="20%"><span id="xsbh" >${contractbean.xsbh}</span></td>
					<td width="150">
					<s:if test="contractbean.hetxs==1">出省站： </s:if><s:else>营业站：</s:else>
					</td>
					<td ><span id="yingyzhmjglz">${contractbean.yingyzhmjglz}</span></td>
				</tr>

				<tr>
					<td>买受人（购方）:</td>
					<td><span id="maisdwmc">${contractbean.maisdwmc}</span></td>					
					<td>签约地点:</td>
					<td>中煤交网上交易平台</td>					
					<td>到达省、地（市）:</td>					
					<td><span id="daodshengname">${contractbean.daodshengname}</span><span id="daodshiname">${contractbean.daodshiname}</span></td>
				</tr>

				<tr>
					<td>发货单位:</td>
					<td><span id="fahdwmc">${contractbean.fahdwmc}</span></td>			
					<td>隶属行业:</td>
					<td><span id="hangyname">${contractbean.hangyname}</span></td>				
				</tr>

				<tr>
				
				
					<td colspan="6" style="padding-top:5px;">一、收货人名称、发到站、品种规格、质量、交（提）货时间、数量
					</td>
				</tr>
				<tr>
					<td colspan="6" style="padding:1px;">
						<table id="changdi" align="center" cellpadding="0" cellspacing="0" border="1"
							class="content_gridview" >
							<thead>
								<tr>
									<th rowspan="3">收货人名称</th>
									<th rowspan="3">品种规格</th>
									<th rowspan="3">质量指标</th>
									<th rowspan="3">价格<br/>(元/吨)</th>
									<th colspan="13">交（提）货时间、煤量（吨）</th>

								</tr>
								<tr>
									<th rowspan="2">全年合计</th>
									<th colspan="3">一季度</th>
									<th colspan="3">二季度</th>
									<th colspan="3">三季度</th>
									<th colspan="3">四季度</th>
								</tr>
								<tr>
									<th>1</th>
									<th>2</th>
									<th>3</th>
									<th>4</th>
									<th>5</th>
									<th>6</th>
									<th>7</th>
									<th>8</th>
									<th>9</th>
									<th>10</th>
									<th>11</th>
									<th>12</th>
								</tr>
							</thead>
							<tbody>
								
									<tr>
										<td><span id="shouhdwmc">${extendbean.shouhdwmc}</span></td>
										<td><span id="pinzgg">${extendbean.pinzgg}</span></td>
										<td><span id="zhilzb">${extendbean.zhilzb}</span></td>
										<td><span id="jiag">${extendbean.jiag}</span></td>
										<td><span id="shul">${extendbean.shul}</span></td>
										<td><span id="gml1">${extendbean.gml1}</span></td>  
										<td><span id="gml2">${extendbean.gml2}</span></td>  
										<td><span id="gml3">${extendbean.gml3}</span></td>  
										<td><span id="gml4">${extendbean.gml4}</span></td>  
										<td><span id="gml5">${extendbean.gml5}</span></td>  
										<td><span id="gml6">${extendbean.gml6}</span></td>  
										<td><span id="gml7">${extendbean.gml7}</span></td>  
										<td><span id="gml8">${extendbean.gml8}</span></td>  
										<td><span id="gml9">${extendbean.gml9}</span></td>  
										<td><span id="gml10">${extendbean.gml10}</span></td>
										<td><span id="gml11">${extendbean.gml11}</span></td>
										<td><span id="gml12">${extendbean.gml12}</span></td>
									</tr>		
							</tbody>
						</table></td>
				</tr>

                
				<tr>
					<td colspan="6">
						<table id="clause" cellpadding="0" cellspacing="0"  border="0" class="content1" >
							<s:iterator  value="clausebean" status="i" >
								<tr>
									<td>${tkh} ${biaot}<input type="hidden" name="djtk[${i.index}].biaot" value="${biaot}"/></td>
									<td>${neir}<input type="hidden" name="djtk[${i.index }].neir" value="${neir}"/></td>
								</tr>
								
							</s:iterator>
							
						</table>
						</td>
				</tr>
				<tr>
				<td>
							<input id="xsbh_inp"  type="hidden"  name="ht.hetbh" value="${contractbean.xsbh}"/>		
							<input id="chumdwmc_inp" type="hidden" name="ht.chumdwmc"  value="${contractbean.chumdwmc}"/>
							<input id="chumdwbm_inp" type="hidden" name="ht.chumdwbm"  value="${contractbean.chumdwbm}"/>
							<input id="yingyzhmjglz_inp" type="hidden" name="ht.yingyzhmjglz"  value="${contractbean.yingyzhmjglz}"/>
							<input id="yingyzhmjglzbm_inp" type="hidden" name="ht.yingyzhmjglzbm"  value="${contractbean.yingyzhmjglzbm}"/>
							<input id="maisdwmc_inp" type="hidden" name="ht.maisdwmc"  value="${contractbean.maisdwmc}"/>
							<input id="maisdwbm_inp" type="hidden" name="ht.maisdwbm"  value="${contractbean.maisdwbm}"/>
							<input id="qianydd_inp" type="hidden" name="ht.qianydd"  value="中煤交网上交易平台"/>
							<input id="daodshiname_inp" type="hidden" name="ht.daodssdname"  value="${contractbean.daodshiname}"/>
							<input id="daodssd_inp" type="hidden" name="ht.daodssd"  value="${contractbean.daodssd}"/>
							<input id="hetxs_inp" type="hidden" name="ht.hetxs"  value="${contractbean.hetxs}"/>
							<input id="hetxsname_inp" type="hidden" name="ht.hetxsname"  value="${contractbean.hetxsname}"/>
							<input id="jiaglxname_inp" type="hidden" name="ht.jiaglxmc"  value="${contractbean.jiaglxname}"/>
							<input id="jiaglx_inp" type="hidden" name="ht.jiaglx"  value="${contractbean.jiaglx}"/>	
							<input id="hangy_inp" type="hidden" name="ht.hangy"  value="${contractbean.hangy}"/>	
							<input id="hangyname_inp" type="hidden" name="ht.hangylsname"  value="${contractbean.hangyname}"/>	
							<input id="fahdwmc_inp" type="hidden" name="ht.fahdwmc"  value="${contractbean.fahdwmc}"/>
							<input id="fahdwbm_inp" type="hidden" name="ht.fahdwbm"  value="${contractbean.fahdwbm}"/>
							
							
							<input id="shouhdwmc_inp" type="hidden" name="htkz[0].shouhdwmc"  value="${extendbean.shouhdwmc}"/>
							<input id="shouhdwbm_inp" type="hidden" name="htkz[0].shouhdwbm"  value="${extendbean.shouhdwbm}"/>
							<input id="pinzgg_inp" type="hidden" name="htkz[0].pinzgg"  value="${extendbean.pinzgg}"/>
							<input id="meiz_inp" type="hidden" name="htkz[0].meiz"  value="${extendbean.meiz}"/>
							<input id="meizbm_inp" type="hidden" name="htkz[0].meizbm"  value="${extendbean.meizbm}"/>
							<input id="pinz_inp" type="hidden" name="htkz[0].pinz"  value="${extendbean.pinz}"/>
							<input id="pinzbm_inp" type="hidden" name="htkz[0].pinzbm"  value="${extendbean.pinzbm}"/>
							<input id="zhilzb_inp" type="hidden" name="htkz[0].zhilzb"  value="${extendbean.zhilzb}"/>
							<input id="jiag_inp" type="hidden" name="htkz[0].jiag"  value="${extendbean.jiag}"/>
							<input id="shul_inp" type="hidden" name="htkz[0].shul"  value="${extendbean.shul}"/>
							<input id="gml1_inp" type="hidden" name="htkz[0].gml1"  value="${extendbean.gml1}"/>
							<input id="gml2_inp" type="hidden" name="htkz[0].gml2"  value="${extendbean.gml2}"/>
							<input id="gml3_inp" type="hidden" name="htkz[0].gml3"  value="${extendbean.gml3}"/>
							<input id="gml4_inp" type="hidden" name="htkz[0].gml4"  value="${extendbean.gml4}"/>
							<input id="gml5_inp" type="hidden" name="htkz[0].gml5"  value="${extendbean.gml5}"/>
							<input id="gml6_inp" type="hidden" name="htkz[0].gml6"  value="${extendbean.gml6}"/>
							<input id="gml7_inp" type="hidden" name="htkz[0].gml7"  value="${extendbean.gml7}"/>
							<input id="gml8_inp" type="hidden" name="htkz[0].gml8"  value="${extendbean.gml8}"/>
							<input id="gml9_inp" type="hidden" name="htkz[0].gml9"  value="${extendbean.gml9}"/>
							<input id="gml10_inp" type="hidden" name="htkz[0].gml10"  value="${extendbean.gml10}"/>
							<input id="gml11_inp" type="hidden" name="htkz[0].gml11"  value="${extendbean.gml11}"/>
							<input id="gml12_inp" type="hidden" name="htkz[0].gml12"  value="${extendbean.gml12}"/>
							<input id="djzb_inp" type="hidden" name="djzbstr"  value="${extendbean.djzb}"/>
							
						
							<input id="chumdwdz_inp" type="hidden" name="ht.chumdwdz"  value="${contractbean.chumdwdz}"/>         
							<input id="chumdwfddbr_inp" type="hidden" name="ht.chumdwfddbr"  value="${contractbean.chumdwfddbr}"/>         
							<input id="chumdwwtdlr_inp" type="hidden" name="ht.chumdwwtdlr"  value="${contractbean.chumdwwtdlr}"/>         
							<input id="chumdwdh_inp" type="hidden" name="ht.chumdwdh"  value="${contractbean.chumdwdh}"/>         
							<input id="chumdwcz_inp" type="hidden" name="ht.chumdwcz"  value="${contractbean.chumdwcz}"/>         
							<input id="chumdwyzbm_inp" type="hidden" name="ht.chumdwyzbm"  value="${contractbean.chumdwyzbm}"/>         
							<input id="chumdwkhyh_inp" type="hidden" name="ht.chumdwkhyh"  value="${contractbean.chumdwkhyh}"/>         
							<input id="chumdwzh_inp" type="hidden" name="ht.chumdwzh"  value="${contractbean.chumdwzh}"/>         
							<input id="chumdwnsrdjh_inp" type="hidden" name="ht.chumdwnsrdjh"  value="${contractbean.chumdwnsrdjh}"/>         
							
							
							<input id="chumdwjsrbm_inp" type="hidden" name="ht.chumdwjsrbm"  value="${contractbean.chumdwjsrbm}"/>         
							<input id="chumdwjsrmc_inp" type="hidden" name="ht.chumdwjsrmc"  value="${contractbean.chumdwjsrmc}"/>         
							<input id="chumdwjsrdz_inp" type="hidden" name="ht.chumdwjsrdz"  value="${contractbean.chumdwjsrdz}"/>         
							<input id="chumdwjsrfddbr_inp" type="hidden" name="ht.chumdwjsrfddbr"  value="${contractbean.chumdwjsrfddbr}"/>         
							<input id="chumdwjsrwtdlr_inp" type="hidden" name="ht.chumdwjsrwtdlr"  value="${contractbean.chumdwjsrwtdlr}"/>         
							<input id="chumdwjsrdh_inp" type="hidden" name="ht.chumdwjsrdh"  value="${contractbean.chumdwjsrdh}"/>         
							<input id="chumdwjsrcz_inp" type="hidden" name="ht.chumdwjsrcz"  value="${contractbean.chumdwjsrcz}"/>         
							<input id="chumdwjsryzbm_inp" type="hidden" name="ht.chumdwjsryzbm"  value="${contractbean.chumdwjsryzbm}"/>         
							<input id="chumdwjsrkhyh_inp" type="hidden" name="ht.chumdwjsrkhyh"  value="${contractbean.chumdwjsrkhyh}"/>         
							<input id="chumdwjsrzh_inp" type="hidden" name="ht.chumdwjsrzh"  value="${contractbean.chumdwjsrzh}"/>         
							<input id="chumdwjsrnsrdjh_inp" type="hidden" name="ht.chumdwjsrnsrdjh"  value="${contractbean.chumdwjsrnsrdjh}"/>         
							
							<input id="maisdwdz_inp" type="hidden" name="ht.maisdwdz"  value="${contractbean.maisdwdz}"/>         
							<input id="maisdwfddbr_inp" type="hidden" name="ht.maisdwfddbr"  value="${contractbean.maisdwfddbr}"/>         
							<input id="maisdwwtdlr_inp" type="hidden" name="ht.maisdwwtdlr"  value="${contractbean.maisdwwtdlr}"/>         
							<input id="maisdwdh_inp" type="hidden" name="ht.maisdwdh"  value="${contractbean.maisdwdh}"/>         
							<input id="maisdwcz_inp" type="hidden" name="ht.maisdwcz"  value="${contractbean.maisdwcz}"/>         
							<input id="maisdwyzbm_inp" type="hidden" name="ht.maisdwyzbm"  value="${contractbean.maisdwyzbm}"/>         
							<input id="maisdwkhyh_inp" type="hidden" name="ht.maisdwkhyh"  value="${contractbean.maisdwkhyh}"/>         
							<input id="maisdwzh_inp" type="hidden" name="ht.maisdwzh"  value="${contractbean.maisdwzh}"/>         
							<input id="maisdwnsrdjh_inp" type="hidden" name="ht.maisdwnsrdjh"  value="${contractbean.maisdwnsrdjh}"/>         
							
							<input id="maisdwjsrbm_inp" type="hidden" name="ht.maisdwjsrbm"  value="${contractbean.maisdwjsrbm}"/>         
							<input id="maisdwjsrmc_inp" type="hidden" name="ht.maisdwjsrmc"  value="${contractbean.maisdwjsrmc}"/>         
							<input id="maisdwjsrdz_inp" type="hidden" name="ht.maisdwjsrdz"  value="${contractbean.maisdwjsrdz}"/>         
							<input id="maisdwjsrfddbr_inp" type="hidden" name="ht.maisdwjsrfddbr"  value="${contractbean.maisdwjsrfddbr}"/>         
							<input id="maisdwjsrwtdlr_inp" type="hidden" name="ht.maisdwjsrwtdlr"  value="${contractbean.maisdwjsrwtdlr}"/>         
							<input id="maisdwjsrdh_inp" type="hidden" name="ht.maisdwjsrdh"  value="${contractbean.maisdwjsrdh}"/>         
							<input id="maisdwjsrcz_inp" type="hidden" name="ht.maisdwjsrcz"  value="${contractbean.maisdwjsrcz}"/>         
							<input id="maisdwjsryzbm_inp" type="hidden" name="ht.maisdwjsryzbm"  value="${contractbean.maisdwjsryzbm}"/>         
							<input id="maisdwjsrkhyh_inp" type="hidden" name="ht.maisdwjsrkhyh"  value="${contractbean.maisdwjsrkhyh}"/>         
							<input id="maisdwjsrzh_inp" type="hidden" name="ht.maisdwjsrzh"  value="${contractbean.maisdwjsrzh}"/>         
							<input id="maisdwjsrnsrdjh_inp" type="hidden" name="ht.maisdwjsrnsrdjh"  value="${contractbean.maisdwjsrnsrdjh}"/> 
							</td>
				</tr>			
				<tr>
			    <td colspan="6">
						<table cellpadding="0" cellspacing="0" style="width:100%" border="1"
							class="content_gridview">
							<thead>
								<tr>
									<th colspan="2">出卖人</th>
									<th colspan="2">买受人</th>
									<th>鉴（公）证单位：</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>
										<table cellpadding="0" cellspacing="0" border="0" class="content1">
											<tr>
												<td>出卖人名称(章)：</td>
												<td><span id="chumdwmc2">${contractbean.chumdwmc}</span></td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td><span id="chumdwdz">${contractbean.chumdwdz}</span></td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td><span id="chumdwfddbr">${contractbean.chumdwfddbr}</span></td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td><span id="chumdwwtdlr">${contractbean.chumdwwtdlr}</span></td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td><span id="chumdwdh">${contractbean.chumdwdh}</span></td>
											</tr>
											<tr>
												<td>传真:</td>
												<td><span id="chumdwcz">${contractbean.chumdwcz}</span></td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td><span id="chumdwyzbm">${contractbean.chumdwyzbm}</span></td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td><span id="chumdwkhyh">${contractbean.chumdwkhyh}</span></td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td><span id="chumdwzh">${contractbean.chumdwzh}</span></td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td><span id="chumdwnsrdjh">${contractbean.chumdwnsrdjh}</span></td>
											</tr>

										</table></td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人结算单位名称(章)：</td>
												<td><span id="chumdwjsrmc">${contractbean.chumdwjsrmc}</span></td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td><span id="chumdwjsrdz">${contractbean.chumdwjsrdz}</span></td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td><span id="chumdwjsrfddbr">${contractbean.chumdwjsrfddbr}</span></td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td><span id="chumdwjsrwtdlr">${contractbean.chumdwjsrwtdlr}</span></td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td><span id="chumdwjsrdh">${contractbean.chumdwjsrdh}</span></td>
											</tr>
											<tr>
												<td>传真:</td>
												<td><span id="chumdwjsrcz">${contractbean.chumdwjsrcz}</span> </td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td><span id="chumdwjsryzbm">${contractbean.chumdwjsryzbm}</span></td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td><span id="chumdwjsrkhyh">${contractbean.chumdwjsrkhyh}</span></td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td><span id="chumdwjsrzh">${contractbean.chumdwjsrzh}</span></td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td><span id="chumdwjsrnsrdjh">${contractbean.chumdwjsrnsrdjh}</span></td>
											</tr>

										</table>
									</td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人名称(章)：</td>
												<td><span id="maisdwmc2">${contractbean.maisdwmc}</span> </td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td><span id="maisdwdz">${contractbean.maisdwdz}</span></td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td><span id="maisdwfddbr">${contractbean.maisdwfddbr}</span></td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td><span id="maisdwwtdlr">${contractbean.maisdwwtdlr}</span> 
												</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td><span id="maisdwdh">${contractbean.maisdwdh}</span></td>
											</tr>
											<tr>
												<td>传真:</td>
												<td><span id="maisdwcz">${contractbean.maisdwcz}</span> </td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td><span id="maisdwyzbm">${contractbean.maisdwyzbm}</span> </td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td><span id="maisdwkhyh">${contractbean.maisdwkhyh}</span> </td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td><span id="maisdwzh">${contractbean.maisdwzh}</span></td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td><span id="maisdwnsrdjh">${contractbean.maisdwnsrdjh}</span> 
												</td>
											</tr>

										</table>
									</td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人结算单位名称(章)：</td>
												<td><span id="maisdwjsrmc">${contractbean.maisdwjsrmc}</span></td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td><span id="maisdwjsrdz">${contractbean.maisdwjsrdz}</span></td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td><span id="maisdwjsrfddbr">${contractbean.maisdwjsrfddbr}</span></td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td><span id="maisdwjsrwtdlr">${contractbean.maisdwjsrwtdlr}</span></td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td><span id="maisdwjsrdh">${contractbean.maisdwjsrdh}</span> </td>
											</tr>
											<tr>
												<td>传真:</td>
												<td><span id="maisdwjsrcz">${contractbean.maisdwjsrcz}</span></td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td><span id="maisdwjsryzbm">${contractbean.maisdwjsryzbm}</span>
												</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td><span id="maisdwjsrkhyh">${contractbean.maisdwjsrkhyh}</span></td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td><span id="maisdwjsrzh">${contractbean.maisdwjsrzh}</span></td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td><span id="maisdwjsrnsrdjh">${contractbean.maisdwjsrnsrdjh}</span></td>
											</tr>

										</table>
									</td>
									<td rowspan="2">
									<div align="left">经办人：</div>&nbsp;
									<br/><br/><br/><br/>									
									鉴（公）证机构（章）<br/>年 月  日
									</td>
								</tr>
							</tbody>
						</table></td>

				</tr>
				<tr>
					<td colspan="6" align="center">
					    <input id="queren" type="button"  value="确认生成合同"  />&nbsp;&nbsp;&nbsp; 
						<input id="guanbi" class="noprint" type="button"  value="关闭" onclick="window.returnValue=1;window.close();" /> 														
					</td>					
				</tr>
				<tr>
				    <td colspan="6" align="center">
					    <span></span>
					    <span id="xszt_0" >温馨提示：目前该协商属于协商起草状态,当发起方点击发布按钮后,才能够确认生成合同</span> 	
					    <span id="xszt_1" >温馨提示：协商处于发布状态，您可以点击生成合同</span>  
					    <span id="xszt_2" >温馨提示：您已确认，待中心审批</span>														
					</td>
				</tr>

			</table>
			</form>
	</div>		
	
	
</body>
</html>
